package com.deep.sftp;


import org.springframework.boot.Banner;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
public class SftpApplication {
    public static void main(String[] args) {
        new SpringApplicationBuilder().bannerMode(Banner.Mode.OFF).sources(SftpApplication.class).run(args);
    }

    @Bean
    @ConditionalOnMissingBean
    public SftpObjectPool sftpObjectPool(SftpProperties sftpProperties) {
        return new SftpObjectPool(sftpProperties);
    }

}
